from google.appengine.ext import ndb

class User(ndb.Model):
    _use_cache = False
    _use_memcache = False
    city = ndb.StringProperty()

ndb.put_multi([User(id='heidi%s' % i, city='Zurich') for i in xrange(20)])

users = User.query(User.city == 'Zurich').iter(limit=10)
# on another request
users = User.query(User.city == 'Zurich').iter(limit=10, offset=10)
for user in users:
    print user
